package top.superflow.core.housekeep

import akka.actor.ActorSystem

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._


trait HouseKeeper {
  val actorSystem = ActorSystem("HouseKeeper")
  
  def schedule(interval : Long, work : => Unit){
    
    actorSystem.scheduler.schedule(0.seconds, interval seconds)(work)
  }
  
}
